#ifndef DECODER_H
#define DECODER_H
#include <phonon/audiooutput.h>
#include <phonon/seekslider.h>
#include <phonon/mediaobject.h>
#include <phonon/volumeslider.h>
#include <phonon/backendcapabilities.h>
#include <QtCore/QList>
#include <QtCore/qstring.h>

QT_BEGIN_NAMESPACE
class QAction;
class QTableWidget;
class QLCDNumber;
QT_END_NAMESPACE

class decoder : public QObject
{
    Q_OBJECT
public :
    decoder();
    void loadFile(QString);//load file
signals:
    void AboutToFinish();
public slots:


    void play();//play
    void pause();//pause


public:
    Phonon::MediaObject *mediaObject;
    Phonon::AudioOutput *audioOutput;
    //QList<Phonon::MediaSource> sources;
    Phonon::MediaSource source;
};
#endif
